package cn.tedu.mybatisxml.mapper;


import cn.tedu.mybatisxml.pojo.WeiBo;
import cn.tedu.mybatisxml.pojo.WeiboIndexVO;
import cn.tedu.mybatisxml.pojo.weiBoVo;
import cn.tedu.mybatisxml.pojo.weiboDetailsVO;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface WeiBoMapper {

    boolean insert(WeiBo weiBo);

    boolean delete(WeiBo weiBo);

    boolean update(WeiBo weiBo);

    List<weiBoVo> select();

    List<weiBoVo> selectID(int id);
    /**
     * 统计微博表中数量
     */
    int selectCount();
    /**
     * 微博列表
     */
    List<WeiboIndexVO> weiboIndex();
    List<weiboDetailsVO> weiboDetails();


}
